﻿
using System.ComponentModel.DataAnnotations;

namespace _3_NovaAdmin.Domain.Entities;

[Table("User")]
public class User : Entity<Guid>
{
    public User()
    {
        this.Id = Guid.NewGuid();
    }

    public string UserName { get; set; }

    [Required]
    [Column(TypeName = "varchar(200)")]
    public string Password { get; set; }

    public string Email { get; set; }

    public object[] GetKeys()
    {
        return new object[] { Id };
    }
}
